Use a generated table of offsets into a big const string to avoid
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Mar 2005 03:59:45 +0000 (03:59 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 8 Mar 2005 03:59:45 +0000 (03:59 +0000)
commitf0175e1ff604e59830dad19e4306455accfaace3
tree718b41285a07414bc4252c98c3e28c941b70bfd9
parentd1134c490888e19293485fc48d8ddcaacc42a410
Use a generated table of offsets into a big const string to avoid

2005-03-07  Matthias Clasen  <mclasen@redhat.com>

* io-xpm.c: Use a generated table of offsets
into a big const string to avoid relocations
in the rgb color table. (#168901, Tommi Komulainen)

* gen-color-table.pl: Script to generate the table,
copied from Owen Taylors script by the same name
in Pango.

* xpm-color-table.h: The generated table.
gdk-pixbuf/ChangeLog
gdk-pixbuf/gen-color-table.pl [new file with mode: 0755]
gdk-pixbuf/io-xpm.c
gdk-pixbuf/xpm-color-table.h [new file with mode: 0644]